package org.example2;

public class Apresenter extends SuperClass implements Presenter {

    public Apresenter() {
        System.out.println("Apresenter的构造方法执行了");
    }

    //
    @Override
    public void go(HasWidgets hasWidgets) {
        System.out.println("Apresenter go方法执行了------" + hasWidgets.print());
    }

    //没有覆写,且全局没有被调用
    public void sayA(String string) {
        System.out.println("Apresenter " + string);
    }

    public int hashCode() {
        System.out.println("Apresenter中的hashCode方法执行了");
        return 1111122;
    }

    //只要有覆写,就会显示高亮
    public void show() {
        System.out.println("Apresenter类的show方法 is running");
    }
}
